package cn.edu.scau.cmi.luochenghao.chapter06;

class Student6_5 {
	int number;String name;
	Student6_5() {
	}
	Student6_5(int number,String name) {
		this.number=number;
		this.name=name;
		System.out.println("我的名字是："+name+"学号是："+number);
	}
}

class UniversityStudent extends Student6_5 {
	boolean isMarried;
	UniversityStudent(int number,String name,boolean b) {
		super(number,name);
		isMarried=b;
		System.out.println("婚否="+isMarried);
	}
}

public class Example6_5 {
	
	public static void main(String[] args) {
		UniversityStudent zhang=new UniversityStudent(9901,"何晓林",false);
	}

}
